<template>
	<view class="page-wrap" :data-theme="theme" :class="theme" :style="globalColor.style">
		<HeadCustom></HeadCustom>
		<view class="cell font28 fboxRow Ycenter" v-for="(item, index) in xyList" :key="index" @click="cellClick(item)">
			<view class="flex1 font32">{{item.type}}</view>
			<text class="bwfont bw-arrow-right color-ACB4C7 font26"></text>
		</view>
	</view>
</template>
<script>
export default {
	props: {},
	data() {
		return {
			theme: getApp().globalData.appTheme,
			globalColor: getApp().globalData.globalColor,
			xyList: [{ type: '用户协议', id: 'user' }, { type: '隐私政策', id: 'privacy' }]
		};
	},
	onLoad() {
		uni.setNavigationBarTitle({
			title: `协议与条款`
		});
	},
	methods: {
		cellClick(data) {
			uni.navigateTo({
				url: '/about/index' + '?settingCode=' + data.id
			});
		}
	}
};
</script>

<style lang="scss" scoped>
.cell{padding: 0 30rpx; height: 100rpx; color: var(--titleFontColor) ; border-bottom: 1rpx solid var(--backgroundDivisionColor) !important;}
.cell .value{color:var(--contentFontLightColor)}
.cell .bwfont{margin-left: 10rpx;}
</style>
